package router

import (
	"github.com/gin-gonic/gin"

	"routeApi/api/route"
)

func InitRouteRouter(u *gin.RouterGroup) {
	GoodsRouter := u.Group("/route")
	{
		GoodsRouter.GET("", route.FindRouteList)
		GoodsRouter.POST("", route.AddRoute)
		GoodsRouter.GET("/:id", route.FindRouteById)
		GoodsRouter.DELETE("/:id", route.DeleteRouteById)
		GoodsRouter.PUT("/:id", route.UpdateRoute)
	}
}
